<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

/*$route['default_controller'] = "pages/view";
$route['404_override'] = '';
$route['(:any)'] = 'pages/view/$1';
$route['news/(:any)'] = 'news/view/$1';
$route['news'] = 'news';*/

//Frontend Routing
$route['default_controller'] = 'welcome/page/PL005/0';
$route['404_override'] = '';

$route['switch_lang/(:any)'] = 'welcome/switch_lang/$1';

$route['page'] = 'welcome/page/PL005/0';
$route['page/(:num)'] = 'welcome/page/PL005/$1';
$route['page/(:any)'] = 'welcome/page/$1/0';
$route['page/(:any)/(:any)'] = 'welcome/page/$1/$2';

$route['cart'] = 'cart/page';
$route['cart/page/(:num)/(:num)'] = 'cart/page/$1/$2';
$route['cart/page'] = 'cart/page/0';
$route['cart/add_cart_item'] = 'cart/add_cart_item';
$route['cart/show_cart'] = 'cart/show_cart';
$route['cart/update_cart'] = 'cart/update_cart';
$route['cart/show_total_cart'] = 'cart/show_total_cart';
$route['cart/empty_cart'] = 'cart/empty_cart';
$route['cart/show_total_content_item'] = 'cart/show_total_content_item';
$route['cart/get_store_qty/(:any)'] = 'cart/get_store_qty/$1';

$route['detail/(:any)'] = 'detail/index/$1';

// Backend Routing
/* End of file routes.php */
/* Location: ./application/config/routes.php */